home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2001 May / SGI IRIX Base Documentation 2001 May.iso / usr / share / catman / p_man / cat3 / Xt / XtGetSelectionValue.z / XtGetSelectionValue
Encoding:
Text File  |  1998-10-30  |  5.3 KB  |  133 lines

  1.  
  2.  
  3.  
  4.      XXXXttttGGGGeeeettttSSSSeeeelllleeeeccccttttiiiioooonnnnVVVVaaaalllluuuueeee((((3333XXXXtttt))))XXXX VVVVeeeerrrrssssiiiioooonnnn 11111111 ((((RRRReeeelllleeeeaaaasssseeee 6666....3333))))XXXXttttGGGGeeeettttSSSSeeeelllleeeeccccttttiiiioooonnnnVVVVaaaalllluuuueeee((((3333XXXXtttt))))
  5.  
  6.  
  7.  
  8.      NNNNAAAAMMMMEEEE
  9.           XtGetSelectionValue, XtGetSelectionValues - obtain selection
  10.           values
  11.  
  12.      SSSSYYYYNNNNTTTTAAAAXXXX
  13.           void XtGetSelectionValue(_w, _s_e_l_e_c_t_i_o_n, _t_a_r_g_e_t, _c_a_l_l_b_a_c_k,
  14.           _c_l_i_e_n_t__d_a_t_a, _t_i_m_e)
  15.                 Widget _w;
  16.                 Atom _s_e_l_e_c_t_i_o_n;
  17.                 Atom _t_a_r_g_e_t;
  18.                 XtSelectionCallbackProc _c_a_l_l_b_a_c_k;
  19.                 XtPointer _c_l_i_e_n_t__d_a_t_a;
  20.                 Time _t_i_m_e;
  21.  
  22.           void XtGetSelectionValues(_w, _s_e_l_e_c_t_i_o_n, _t_a_r_g_e_t_s, _c_o_u_n_t,
  23.           _c_a_l_l_b_a_c_k, _c_l_i_e_n_t__d_a_t_a, _t_i_m_e)
  24.                 Widget _w;
  25.                 Atom _s_e_l_e_c_t_i_o_n;
  26.                 Atom *_t_a_r_g_e_t_s;
  27.                 int _c_o_u_n_t;
  28.                 XtSelectionCallbackProc _c_a_l_l_b_a_c_k;
  29.                 XtPointer _c_l_i_e_n_t__d_a_t_a;
  30.                 Time _t_i_m_e;
  31.  
  32.      AAAARRRRGGGGUUUUMMMMEEEENNNNTTTTSSSS
  33.           _c_a_l_l_b_a_c_k  Specifies the callback procedure that is to be
  34.                     called when the selection value has been obtained.
  35.  
  36.           _c_l_i_e_n_t__d_a_t_a
  37.                     Specifies the argument that is to be passed to the
  38.                     specified procedure when it is called.
  39.  
  40.           _c_l_i_e_n_t__d_a_t_a
  41.                     Specifies the client data (one for each target
  42.                     type) that is passed to the callback procedure
  43.                     when it is called for that target.
  44.  
  45.           _c_o_u_n_t     Specifies the length of the targets and
  46.                     client_data lists.
  47.  
  48.           _s_e_l_e_c_t_i_o_n Specifies the particular selection desired (that
  49.                     is, primary or secondary).
  50.  
  51.           _t_a_r_g_e_t    Specifies the type of the information that is
  52.                     needed about the selection.
  53.  
  54.           _t_a_r_g_e_t_s   Specifies the types of information that is needed
  55.                     about the selection.
  56.  
  57.           _t_i_m_e      Specifies the timestamp that indicates when the
  58.                     selection value is desired.
  59.  
  60.  
  61.  
  62.  
  63.      Page 1                                          (printed 4/30/98)
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.      XXXXttttGGGGeeeettttSSSSeeeelllleeeeccccttttiiiioooonnnnVVVVaaaalllluuuueeee((((3333XXXXtttt))))XXXX VVVVeeeerrrrssssiiiioooonnnn 11111111 ((((RRRReeeelllleeeeaaaasssseeee 6666....3333))))XXXXttttGGGGeeeettttSSSSeeeelllleeeeccccttttiiiioooonnnnVVVVaaaalllluuuueeee((((3333XXXXtttt))))
  71.  
  72.  
  73.  
  74.           _w         Specifies the widget that is making the request.
  75.  
  76.      DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  77.           The _X_t_G_e_t_S_e_l_e_c_t_i_o_n_V_a_l_u_e function requests the value of the
  78.           selection that has been converted to the target type. The
  79.           specified callback will be called some time after
  80.           _X_t_G_e_t_S_e_l_e_c_t_i_o_n_V_a_l_u_e is called; in fact, it may be called
  81.           before or after _X_t_G_e_t_S_e_l_e_c_t_i_o_n_V_a_l_u_e returns.
  82.  
  83.           The _X_t_G_e_t_S_e_l_e_c_t_i_o_n_V_a_l_u_e_s function is similar to
  84.           _X_t_G_e_t_S_e_l_e_c_t_i_o_n_V_a_l_u_e except that it takes a list of target
  85.           types and a list of client data and obtains the current
  86.           value of the selection converted to each of the targets.
  87.           The effect is as if each target were specified in a separate
  88.           call to _X_t_G_e_t_S_e_l_e_c_t_i_o_n_V_a_l_u_e.  The callback is called once
  89.           with the corresponding client data for each target.
  90.           _X_t_G_e_t_S_e_l_e_c_t_i_o_n_V_a_l_u_e_s does guarantee that all the conversions
  91.           will use the same selection value because the ownership of
  92.           the selection cannot change in the middle of the list, as
  93.           would be when calling _X_t_G_e_t_S_e_l_e_c_t_i_o_n_V_a_l_u_e repeatedly.
  94.  
  95.      SSSSEEEEEEEE AAAALLLLSSSSOOOO
  96.           XtAppGetSelectionTimeout(3Xt), XtOwnSelection(3Xt)
  97.           _X _T_o_o_l_k_i_t _I_n_t_r_i_n_s_i_c_s - _C _L_a_n_g_u_a_g_e _I_n_t_e_r_f_a_c_e
  98.           _X_l_i_b - _C _L_a_n_g_u_a_g_e _X _I_n_t_e_r_f_a_c_e
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.      Page 2                                          (printed 4/30/98)
  130.  
  131.  
  132.  
  133.